gdk: Include a default cursor as resource
authorMatthias Clasen <mclasen@redhat.com>
Sun, 26 Apr 2020 18:41:52 +0000 (14:41 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 26 Apr 2020 18:41:52 +0000 (14:41 -0400)
Provide a fallback cursor of last resort. Otherwise,
we end up with no visible cursor if there is no
cursor theme installed, wihch is less than helpful.

gdk/default_cursor.png [new file with mode: 0644]
gdk/gen-gdk-gresources-xml.py

diff --git a/gdk/default_cursor.png b/gdk/default_cursor.png
new file mode 100644 (file)
index 0000000..aa39aa4
Binary files /dev/null and b/gdk/default_cursor.png differ
index 11c63552a9b73dff2078033d0cd49f7636db08e8..bc0e5419195b74f8401940e8f5d8f58891ca308e 100644 (file)
@@ -25,7 +25,7 @@ srcdir = sys.argv[1]
 xml = '''<?xml version='1.0' encoding='UTF-8'?>
 <gresources>
   <gresource prefix='/org/gtk/libgdk'>
-
+    <file alias='cursor/default'>default_cursor.png</file>
 '''
 
 def get_files(subdir,extension):